export const operateTypeMap = {
  LOGIN: '登录',
  LOGOUT: '退出登录',
  CREATE: '创建',
  UPDATE: '修改',
  DELETE: '删除',
  TRANSFER: '转派',
  OTHER: '其他',
};

export const operateTypeSearchMap =
  Object.keys(operateTypeMap)?.map(key => ({
    name: operateTypeMap[key],
    label: operateTypeMap[key],
    value: key
  }))

export const statusMap = {
  INFO: {
    text: '正常',
    color: 'success',
  },
  ERROR: {
    text: '异常',
    color: 'error',
  }
};

export const statusSearchMap = Object.keys(statusMap)?.map(key => {
  const item = statusMap[key];
  return {
    name: item?.text,
    label: item?.text,
    value: key
  }
})